<div class="panel panel-default">
  <div class="panel-body">
      <?php if(count($this->errors) > 0){
     
    ?>

<div class="alert alert-danger alert-dismissable">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                <?php 
                    foreach ($this->errors as $errorName => $error){
                        foreach ($error as $message){
                                        echo "<strong>$errorName : </strong>$message <br />";
                        }
                    }

                                        ?>
</div>
<?php }?>
<?php if(count($this->messages) > 0){
    foreach ($this->messages as $message){
        if (strpos($message, "successfully")){
            ?>
           <div class="alert alert-success alert-dismissable">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                                    <?php 
                                        echo "<strong>$message</strong>";
                                        echo '</div>';
        } 
    }
}?>
      <h1 ><span class="glyphicon glyphicon-envelope"></span> Contact Us</h1>
      <div class="row">
          <div class="col-md-6">
              <div>
                  <h3><span class="label label-default">Open Source / ITI- Head Quarter</span></h3>
                  <p>Smart Village - 28 Km by Cairo / Alexandria Desert Road - 6th of October - Building 148 - Room 2009
                      <br />Tel: +202-353-55605 </p>
              </div>
              <div id="map_canvas" ></div>
              <div><p>To get the directions from your <span class="label label-info">current location</span> to smart village just click this button <button class="btn btn-primary pull-right" id="getDirections">Get Directions</button></p></div>   
          </div>
          <h3><span class="label label-default">Contact Form</span></h3>
          <div class="col-md-6"><?=$this->form?></div>
          
      
      </div>
  </div>
</div>
<?php $this->headScript()->appendFile('http://maps.google.com/maps/api/js?sensor=false'); ?>
<?php $this->headScript()->appendFile($this->baseUrl().'/js/map.js'); ?>